<%@ page import="java.io.PrintWriter" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%
    request.setCharacterEncoding("gbk");
    response.setContentType("text/html;charset=gbk");
    PrintWriter o = response.getWriter();
    if (session.getAttribute("user")==null || session.getAttribute("jifen") == null){
        o.print("<script>alert('未登录，请先登录!');window.location.href='index.html'</script>");
    }
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>刷课通 学习通</title>
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <link rel="stylesheet" type="text/css"href="css/iconfont.css"/>
</head>
<body>
<form action="Study" method="post">
    <div id="login-box" style="height: 450px">
        <p style="color: #e28383" >用户名：${user}积分：${jifen}<p>
        <h1>学 习 通</h1>
        <div class="input-box">
            <i class="iconfont">&#xe6da;</i>
            <input type="tel" name="phone" placeholder="Telephone Number" />
        </div>
        <div class="input-box">
            <i class="iconfont">&#xe633;</i>
            <input type="password" name="password" placeholder="UserPassword" />
        </div>
        <div class="input-box">
            <i class="iconfont">&#xe607;</i>
            <input type="text" name="title" placeholder="Course title" />
        </div>
        <button>提交订单</button>
</form>
<a href="welcome.jsp"><input style="border: none;background: none;border-bottom: #FFFFFF 2px solid;padding: 5px 10px;outline: none;color: #fc8282;" type="button" value="返回首页"/></a>
</body>
</html>